<?php

namespace app\common\model\mysql;

use think\Model;

class  Abc extends Model {

    public function get_abc_class($class,$limit=5)
    {   if(empty($class)){
        return [];
    }
       $results=$this->where("class",$class)
       ->limit($limit)
       ->order("id","desc")
       ->select()
       ->toarray();
       
       return $results;

    }
}
